//用户登出
function logOut() {
    $.ajax({
        url: "servlet/end/login",
        method: 'get',
        dataType: "json",
        success:function (datas) {
            console.log("----datas.code----");
            console.log(datas.code);
            if (datas.code>0){
                console.log("--成功--");
                window.location.href = datas.data;
            }else {
                showErrorBox("退出失败");
            }
        }
    })
}
